package com.yc.exam.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.exam.entity.Course;
import com.yc.exam.vo.CourseVo;

/**
 * 服务类
 *
 * @author 王妍
 * @since 2022-02-20
 */
public interface ICourseService extends IService<Course> {
  /** 加载课程页 */
  Page<CourseVo> loadPage(Page<CourseVo> courseVoPage, CourseVo course);

  /** 获取已经订阅的课程 */
  Page<CourseVo> getSubscribed(Long studentId, Page<CourseVo> coursePage, CourseVo course);
  /** 获取未经订阅的课程 */
  Page<CourseVo> getNoSubscribed(Long studentId, Page<CourseVo> coursePage, CourseVo course);
}
